import React, { useState, useContext } from "react";
// 5.找到需要接收的组件，导入myContext
import { myContext } from "../context";
export default function Son3() {
    // 6.导入进来开始赋值
    let a = useContext(myContext)
    return (
        <div>
            {a}
            {a && <div style={{
                width: '100px',
                height: '100px',
                backgroundColor: "red"
            }}></div>}
        </div>
    )
}